package ${configs.packagePath}.common;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

/**
 * <Description>
 * service实现基类(用于扩展)
 * @author Jun Lee
 * @version 1.0
 * @createDate ${date}
 */
public abstract class BaseServiceImpl<T> extends ServiceImpl<BaseMapper<T>,T> {

    protected QueryWrapper<T> getQueryInstance(){
        return new QueryWrapper<T>();
    }

    protected UpdateWrapper<T> getUpdateInstance(){
        return new UpdateWrapper<T>();
    }
}
